export const renderTemplate = (
  templatePath: string,
  data: object
): Promise<string> => {
  return new Promise((resolve) => {
    resolve(window.ipcCom.renderTemplate(templatePath, data));
  });
};
export const renderTemplateContent = (
  content: string,
  data: object
): Promise<string> => {
  return new Promise((resolve) => {
    resolve(window.ipcCom.renderTemplateContent(content, data));
  });
};
